package homework0606;

import java.util.Arrays;

public class ContainerTest {
    public static void main(String[] args) {
        Container c = new Container();
        System.out.println( c.size() );
        System.out.println( c.isEmpty() );
        c.add( 100 );
        c.add( "中国" );
        c.add( '蒋' );
        System.out.println( c.size() );
        System.out.println( c.isEmpty() );
        System.out.println( c );

        Object[] array = c.toArray();
        array[ 0 ] = '华' ;
        System.out.println( Arrays.toString( array ) );

        System.out.println( c.contains(100) );
        System.out.println( c.contains( "中国" ) );
        System.out.println( c.contains( '蒋' ));

        System.out.println( "-------------------------------------" );

        c.remove( "中国" );
        System.out.println( c.toString() );
    }
}
